# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=kdepim-runtime
pkgver=20.04.3
pkgrel=0
pkgdesc="Extends the functionality of kdepim"
url="https://kontact.kde.org/"
# armhf blocked by extra-cmake-modules
# mips, ppc64le and s390x blocked by libkgapi -> qt5-qtwebengine
arch="all !armhf !ppc64le !s390x !mips !mips64"
license="LGPL-2.0-or-later"
makedepends="extra-cmake-modules qt5-qtbase-dev qt5-qtspeech-dev qt5-qtxmlpatterns-dev qt5-qtnetworkauth-dev qca-dev kconfig-dev kconfigwidgets-dev knotifyconfig-dev kio-dev kitemmodels-dev kcodecs-dev kwindowsystem-dev ktextwidgets-dev knotifications-dev kdoctools-dev kholidays-dev akonadi-dev kmime-dev akonadi-mime-dev kmailtransport-dev kidentitymanagement-dev akonadi-contacts-dev kcontacts-dev kcalendarcore-dev kcalutils-dev kmbox-dev kimap-dev akonadi-notes-dev akonadi-calendar-dev pimcommon-dev libkgapi-dev kdav-dev libxslt-dev shared-mime-info"
subpackages="$pkgname-doc $pkgname-lang"
source="https://download.kde.org/stable/release-service/$pkgver/src/kdepim-runtime-$pkgver.tar.xz"

build() {
	cmake -B build \
		-DCMAKE_BUILD_TYPE=None \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=lib
	cmake --build build
}

check() {
	CTEST_OUTPUT_ON_FAILURE=TRUE ctest
}

package() {
	DESTDIR="$pkgdir" cmake --build build --target install
}

sha512sums="2b6e88a61606a833fc7376e9f28f347261c8a7000baf91cb2f0ff2a7df465c8a642c64aabf0e1d064859cab2daf0ef84116f47c043d3cdcea0bfbbe102c12d19  kdepim-runtime-20.04.3.tar.xz"
